package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.ExpressCompany;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface ExpressCompanyService extends IService<ExpressCompany> {

    Page<ExpressCompany> pageList(PageUtil pageUtil, String name, Integer enabled);

    /**
     * 批量修改状态
     */
    void updateEnabled(List<Long> idList, Integer enabled);

    List<ExpressCompany> getByEnabled(String name);
}
